package siar.webservice;

public class ServicosSIARSoapProxy implements siar.webservice.ServicosSIARSoap {
  private String _endpoint = null;
  private siar.webservice.ServicosSIARSoap servicosSIARSoap = null;
  
  public ServicosSIARSoapProxy() {
    _initServicosSIARSoapProxy();
  }
  
  public ServicosSIARSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initServicosSIARSoapProxy();
  }
  
  private void _initServicosSIARSoapProxy() {
    try {
      servicosSIARSoap = (new siar.webservice.ServicosSIARLocator()).getServicosSIARSoap();
      if (servicosSIARSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)servicosSIARSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)servicosSIARSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (servicosSIARSoap != null)
      ((javax.xml.rpc.Stub)servicosSIARSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public siar.webservice.ServicosSIARSoap getServicosSIARSoap() {
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap;
  }
  
  public void clienteCadastrar(siar.webservice.Pessoa pessoa, siar.webservice.Endereco endereco) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.clienteCadastrar(pessoa, endereco);
  }
  
  public void clienteAtualizar(siar.webservice.PessoaBean pessoaBean, siar.webservice.EnderecoBean enderecoBean) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.clienteAtualizar(pessoaBean, enderecoBean);
  }
  
  public void clienteDeletar(java.lang.String telefone) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.clienteDeletar(telefone);
  }
  
  public siar.webservice.PessoaBean[] clienteListar() throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.clienteListar();
  }
  
  public siar.webservice.EnderecoBean[] enderecoListar() throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.enderecoListar();
  }
  
  public siar.webservice.EnderecoBean enderecoBuscar(int id) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.enderecoBuscar(id);
  }
  
  public siar.webservice.PessoaBean clienteBuscar(java.lang.String telefoneP) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.clienteBuscar(telefoneP);
  }
  
  public boolean funcionarioCadastrar(siar.webservice.Pessoa pessoa, siar.webservice.Endereco endereco, java.lang.String tipo) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.funcionarioCadastrar(pessoa, endereco, tipo);
  }
  
  public void funcionarioAtualizar(siar.webservice.Pessoa pessoaBean, siar.webservice.Endereco enderecoBean) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.funcionarioAtualizar(pessoaBean, enderecoBean);
  }
  
  public void funcionarioDeletar(java.lang.String telefone) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.funcionarioDeletar(telefone);
  }
  
  public siar.webservice.PessoaBean[] funcionarioListar() throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.funcionarioListar();
  }
  
  public void insumoCadastrar(siar.webservice.Insumo insumo) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.insumoCadastrar(insumo);
  }
  
  public siar.webservice.InsumoBean insumoBuscar(int id) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.insumoBuscar(id);
  }
  
  public void insumoAtualizar(siar.webservice.InsumoBean aInsumo) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.insumoAtualizar(aInsumo);
  }
  
  public void insumoDeletar(int id) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.insumoDeletar(id);
  }
  
  public siar.webservice.InsumoBean[] insumoListar() throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.insumoListar();
  }
  
  public void pratoCadastrar(siar.webservice.Prato prato, siar.webservice.Prato_Insumo[] insumos) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.pratoCadastrar(prato, insumos);
  }
  
  public void pratoAtualizar(siar.webservice.Prato prato) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.pratoAtualizar(prato);
  }
  
  public siar.webservice.PratoBean pratoBuscar(int id) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.pratoBuscar(id);
  }
  
  public siar.webservice.PratoInsumoBean[] pratoInsumoBuscar(int idPrato) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.pratoInsumoBuscar(idPrato);
  }
  
  public siar.webservice.PratoBean[] pratoListar() throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.pratoListar();
  }
  
  public void bebidaCadastrar(siar.webservice.Bebida bebida) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.bebidaCadastrar(bebida);
  }
  
  public void bebidaAtualizar(siar.webservice.BebidaBean bebida) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.bebidaAtualizar(bebida);
  }
  
  public siar.webservice.BebidaBean bebidaBuscar(int id) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.bebidaBuscar(id);
  }
  
  public siar.webservice.BebidaBean[] bebidaListar() throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.bebidaListar();
  }
  
  public void bebidaDeletar(int id) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.bebidaDeletar(id);
  }
  
  public siar.webservice.PessoaBean efetuarLoginWeb(java.lang.String login, java.lang.String senha) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.efetuarLoginWeb(login, senha);
  }
  
  public siar.webservice.PessoaTipoBean[] tipoListar() throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.tipoListar();
  }
  
  public void pedidoCadastrar(siar.webservice.Pedido pedido) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.pedidoCadastrar(pedido);
  }
  
  public siar.webservice.PedidoBean[] pedidoListar() throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.pedidoListar();
  }
  
  public siar.webservice.PratoBean recuperarPrato(int id_prato) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.recuperarPrato(id_prato);
  }
  
  public java.lang.String bebidaRecuperarDescricao(int id) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.bebidaRecuperarDescricao(id);
  }
  
  public java.lang.String clienteRecuperarNome(int id) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.clienteRecuperarNome(id);
  }
  
  public void vendaCadastrar(siar.webservice.Venda venda) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.vendaCadastrar(venda);
  }
  
  public void vendaEncerrar(siar.webservice.Venda v) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.vendaEncerrar(v);
  }
  
  public java.lang.String recuperarFuncionario(int id_func) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.recuperarFuncionario(id_func);
  }
  
  public siar.webservice.PedidoBean[] pedidosListarPorCliente(int idCliente) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.pedidosListarPorCliente(idCliente);
  }
  
  public siar.webservice.VendaBean[] vendaListar() throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.vendaListar();
  }
  
  public siar.webservice.VendaBean vendaBuscarPorCliente(int idCliente) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.vendaBuscarPorCliente(idCliente);
  }
  
  public int pratoInsumoCadastrar(siar.webservice.Prato_Insumo pratoInsumo) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.pratoInsumoCadastrar(pratoInsumo);
  }
  
  public void pratoInsumoDeletar(int id) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.pratoInsumoDeletar(id);
  }
  
  public void pratoDeletar(int id) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.pratoDeletar(id);
  }
  
  public void pedidoAtualizar(int id, java.lang.String status) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.pedidoAtualizar(id, status);
  }
  
  public void pedidoDeletar(int id) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    servicosSIARSoap.pedidoDeletar(id);
  }
  
  public siar.webservice.PratoBean[] pratosListarDaVendaAtual(int cliente_id) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.pratosListarDaVendaAtual(cliente_id);
  }
  
  public siar.webservice.BebidaBean[] bebidasListarDaVendaAtual(int cliente_id) throws java.rmi.RemoteException{
    if (servicosSIARSoap == null)
      _initServicosSIARSoapProxy();
    return servicosSIARSoap.bebidasListarDaVendaAtual(cliente_id);
  }
  
  
}